import { NgModule, CUSTOM_ELEMENTS_SCHEMA, } from '@angular/core';
import { registerLocaleData, CommonModule } from '@angular/common';
import { HomeComponent } from './home.component';
import zh from '@angular/common/locales/zh';
import { HomeRoutingModule } from './home-routing.module';
import { NzLayoutModule } from 'ng-zorro-antd/layout';
import { NzMenuModule } from 'ng-zorro-antd/menu';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';

import { NzFormModule } from 'ng-zorro-antd/form';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzCheckboxModule } from 'ng-zorro-antd/checkbox';
import { NzInputModule } from 'ng-zorro-antd/input';
import { NzIconModule } from 'ng-zorro-antd/icon';
import { NZ_I18N, zh_CN } from 'ng-zorro-antd/i18n';
import { NzTabsModule } from 'ng-zorro-antd/tabs';
import { WelcomeComponent } from '../welcome/welcome.component';
import { SysUserComponent } from './sys-user/sys-user.component';
import { NzPaginationModule } from 'ng-zorro-antd/pagination';
import { NzTableModule } from 'ng-zorro-antd/table';
import { DataFormComponent } from '../common/data-form/data-form.component';
import { SysMenuComponent } from './sys-menu/sys-menu.component';
import { NzDrawerModule } from 'ng-zorro-antd/drawer';

registerLocaleData(zh);

@NgModule({
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  declarations: [HomeComponent, WelcomeComponent, SysUserComponent, DataFormComponent, SysMenuComponent],
  imports: [
    NzTableModule,
    NzPaginationModule,
    HomeRoutingModule,
    NzLayoutModule,
    NzMenuModule,
    FormsModule,
    NzFormModule,
    NzCheckboxModule,
    NzButtonModule,
    ReactiveFormsModule,
    NzInputModule,
    NzIconModule,
    NzTabsModule,
    CommonModule,
    NzDrawerModule
  ],
  providers: [{ provide: NZ_I18N, useValue: zh_CN }],

  exports: [HomeComponent],
})
export class HomeModule {

}
